package org.bookie.framework.mails;

import org.apache.tapestry.IRequestCycle;

/**
 * Rendered to sent an account registration confirmation email to the new user. 
 * Contains a URL which should be accessed by new user to proceed with account registration.
 */
public abstract class Registration extends CommonMailPage{

	/**
	 * {@inheritDoc}
	 */
	public void activateExternalPage(Object[] parameters, IRequestCycle cycle) {
		super.activateExternalPage(parameters, cycle);
		setUsername((String) parameters[0]);
		setEmail((String) parameters[1]);
		setURL((String) parameters[2]);
	}
	/**Returns username of the recipient*/
	public abstract String getUsername();
	/**
	 * Set username of the recipient
	 * @param username username to set
	 */
	public abstract void setUsername(String username);
	
	/**Returns email of the recipient*/
	public abstract String getEmail();
	/**
	 * Set email of the recipient
	 * @param email email to set
	 */
	public abstract void setEmail(String email);
	
	/**Returns the activation URL*/
	public abstract String getURL();
	/**
	 * Set activation URL
	 * @param url url to set
	 */
	public abstract void setURL(String url);
}
